<template>
  <div>
    <h2 @click="showName">学校名称：{{ name }}</h2>
    <h2>学校地址：{{ address }}</h2>
  </div>
</template>

<script>
import { mixin } from "../mixin";
// 引入混合
export default {
  name: "SchoolInfo",
  data() {
    return {
      name: "石大",
      address: "青岛",
    };
  },
  mixins: [mixin],
};
</script>